<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/8/23
  Time: 16:32
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>客户开发计划 > 查看</title>

    <link rel="shortcut icon" href="<c:url value="/images/favicon.ico"/>" type="image/x-icon"/>
    <script src="<c:url value="/js/jquery-1.9.1.min.js"/>"></script>
    <script src="<c:url value="/layui/layui.js"/>"></script>
    <link rel="stylesheet" type="text/css" href="<c:url value="/layui/css/layui.css"/>">

    <script src="<c:url value="/js/my/commons.js"/>"></script>
    <style>
        .container {
            width: 1200px;
            margin: 100px auto;
        }
        table{
            width: 100%;
        }
    </style>

</head>
<body>

<form class="layui-form layui-form-pane" style="margin-left: 445px">

    <div class="layui-form-item" style="margin-top: 25px;">
        <%--    编号    --%>
        <div class="layui-inline">
            <label class="layui-form-label">编号：</label>
            <div class="layui-input-inline">
                <input id="id" name="id" lay-verify="id"
                       type="text" autocomplete="off" class="layui-input" readonly="readonly" placeholder="从数据库导入">
            </div>
        </div>
        <%--    机会来源    --%>
        <div class="layui-inline" style="margin-left: 100px">
            <label class="layui-form-label">机会来源：</label>
            <div class="layui-input-inline">
                <input id="source" name="source" lay-verify="source"
                       type="text" autocomplete="off" class="layui-input" placeholder="从数据库导入" readonly="readonly">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <%--     客户名称   --%>
        <div class="layui-inline">
            <label class="layui-form-label">客户名称：</label>
            <div class="layui-input-inline">
                <input id="name" name="name" lay-verify="name"
                       type="text" autocomplete="off" class="layui-input" placeholder="从数据库导入" readonly="readonly">
            </div>
        </div>
        <%--     成功几率   --%>
        <div class="layui-inline" style="margin-left: 100px">
            <label class="layui-form-label">成功几率：</label>
            <div class="layui-input-inline">
                <input id="success" name="success" lay-verify="success"
                       type="text" autocomplete="off" class="layui-input" placeholder="从数据库导入" readonly="readonly">
            </div>
        </div>
    </div>

    <%--    概要   --%>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">概要：</label>
            <div class="layui-input-inline">
                <input id="general" name="general" lay-verify="general"
                       type="text" autocomplete="off" placeholder="从数据库导入" class="layui-input" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline" style="margin-left: 100px">
            <label class="layui-form-label">状态：</label>
            <div class="layui-input-inline">
                <input id="status" name="status" lay-verify="status" style="color:red"
                       type="text" autocomplete="off" class="layui-input" placeholder="从数据库导入" readonly="readonly">
            </div>
        </div>
    </div>

    <%--    <div class="layui-form-item">--%>
    <%--        &lt;%&ndash;    状态    &ndash;%&gt;--%>
    <%--        <div class="layui-inline">--%>
    <%--            <label class="layui-form-label">状态：</label>--%>
    <%--            <div class="layui-input-inline">--%>
    <%--                <input id="status" name="status" lay-verify="status"--%>
    <%--                       type="text" autocomplete="off" class="layui-input" placeholder="从数据库导入" readonly="readonly">--%>
    <%--            </div>--%>
    <%--        </div>--%>
    <%--    </div>--%>

    <div class="layui-form-item">
        <%--    联系人    --%>
        <div class="layui-inline">
            <label class="layui-form-label">联系人：</label>
            <div class="layui-input-inline">
                <input id="customerName" name="customerName" lay-verify="customerName"
                       type="text" autocomplete="off" class="layui-input" placeholder="从数据库导入" readonly="readonly">
            </div>
        </div>
        <%--    联系电话    --%>
        <div class="layui-inline" style="margin-left: 100px">
            <label class="layui-form-label">联系电话：</label>
            <div class="layui-input-inline">
                <input id="mobile_phone" name="mobile_phone" lay-verify="mobile_phone"
                       type="text" autocomplete="off" class="layui-input" placeholder="从数据库导入" readonly="readonly">
            </div>
        </div>
    </div>

    <%--    机会描述   --%>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label" style="width: 723px">机会描述：</label>
        <div class="layui-input-block" style="width: 723px">
            <textarea id="description" name="description"
                      placeholder="从数据库导入" class="layui-textarea" readonly="readonly"></textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <%--     创建人   --%>
        <div class="layui-inline">
            <label class="layui-form-label">创建人：</label>
            <div class="layui-input-inline">
                <input id="creater" name="creater" lay-verify="creater"
                       type="text" autocomplete="off" class="layui-input" readonly="readonly" placeholder="从数据库导入">
            </div>
        </div>
        <%--     创建时间   --%>
        <div class="layui-inline" style="margin-left: 100px">
            <label class="layui-form-label">创建时间：</label>
            <div class="layui-input-inline">
                <input id="create_date" name="create_date" lay-verify="create_date"
                       type="text" placeholder="从数据库导入" autocomplete="off" class="layui-input" readonly="readonly">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <%--     指派给谁   --%>
        <div class="layui-inline">
            <label class="layui-form-label">指派：</label>
            <div class="layui-input-inline">
                <input id="Rel_name" name="Rel_name" lay-verify="Rel_name"
                       type="text" placeholder="从数据库导入" autocomplete="off" class="layui-input" readonly="readonly">
            </div>
        </div>
        <%--     指派时间   --%>
        <div class="layui-inline" style="margin-left: 100px">
            <label class="layui-form-label">指派时间：</label>
            <div class="layui-input-inline">
                <input id="allot_date" name="allot_date" lay-verify="allot_date"
                       type="text" placeholder="从数据库导入"  autocomplete="off" class="layui-input" readonly="readonly">
            </div>
        </div>
    </div>

</form>


<div class="layui-fluid" style="height: 1000px;">
    <div class="layui-card">


        <div class="layui-card-body" style="width: 1000px;padding-left: 300px">


            <table id="test" lay-filter="test" class="layui-hide" height=100></table>


        </div>

    </div>
</div>

<script>
    layui.use(['form','table','layer','laydate','layedit'], function(){
        var $ = layui.$
            ,table = layui.table
            ,form = layui.form
            ,layer = layui.layer
            ,laydate = layui.laydate
            ,layedit = layui.layedit;


        //表格
        table.render({
            elem: '#test'
            ,url: '<c:url value="/execute_Page.do"/>'
            ,cols: [[
                ,{field: 'id', title: 'id',style:'display:none;'}
                // ,{field: 'rownu', width: 60, title: 'id'}
                ,{field: 'create_time', width: 177, title: '日期'}
                ,{field: 'detail', title: '计划项', minWidth: 100,width:415}
                ,{field: 'feedback' , title: '执行效果', width: 403, align:'center'}
            ]]
            ,text: '对不起，加载出现异常！'
            /**
             * response:{
                statusName: '自定义的参数名称' ,// 对应 code
                msgName: '自定义的参数名称' , // 对应 msg
                countName: '自定义的参数名称' , // 对应 count
                dataName: '自定义的参数名称' // 对应 data
                }
             */
            ,response: {
                statusName: 'code',// 对应 code
                msgName: 'mag', // 对应 msg
                countName: 'count', // 对应 count
                dataName: 'data'  // 对应 data
            }
            ,text:{none: '无数据'}
        });
        $('table.layui-table thead tr th:eq(0)').addClass('layui-hide');


    });

    $(function () {

        <%--alert(${sessionScope.planeGetSj.get("sale_opportunityId")});--%>
        <%--alert(${sessionScope.planeGetSj.get("source")});--%>
        <%--alert(${sessionScope.planeGetSj.get("customerName")});--%>
        <%--alert(${sessionScope.planeGetSj.get("success")});--%>
        <%--alert(${sessionScope.planeGetSj.get("general")});--%>

        $("#id").val('${sessionScope.planeGetSj.get("sale_opportunityId")}');
        $("#source").val('${sessionScope.planeGetSj.get("source")}');
        $("#name").val('${sessionScope.planeGetSj.get("name")}');
        $("#status").val('${sessionScope.planeGetSj.get("status")}');
        $("#success").val('${sessionScope.planeGetSj.get("success")}');
        $("#general").val('${sessionScope.planeGetSj.get("general")}');
        $("#customerName").val('${sessionScope.planeGetSj.get("customerName")}');
        $("#mobile_phone").val('${sessionScope.planeGetSj.get("mobile_phone")}');
        $("#description").val('${sessionScope.planeGetSj.get("description")}');
        $("#creater").val('${sessionScope.planeGetSj.get("creater")}');
        $("#create_date").val('${sessionScope.planeGetSj.get("create_date")}');
        $("#Rel_name").val('${sessionScope.planeGetSj.get("Rel_name")}');
        $("#allot_date").val('${sessionScope.planeGetSj.get("allot_date")}');



    })


</script>

</body>
</html>
